package com.gitee.springboot.firstlesson.config;

import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport;

/**
 * @author guoxh
 * @date 2019-08-06 16:14
 * @desc
 */

public class MyWebMvcConfig extends WebMvcConfigurationSupport {
    @Override
    protected void addViewControllers(ViewControllerRegistry registry) {
        //super.addViewControllers(registry);
        registry.addViewController("/xx").setViewName("/xx");
    }
}
